<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	>

<h:head>
<title> Artiste </title>
<link rel="stylesheet" type="text/css" href="${facesContext.externalContext.requestContextPath}/resource/css/Style.css" /> 
</h:head>

<h:body>
<ui:include src="/entete.xhtml" />

<h:form enctype="multipart/form-data">

         <fieldset>

            <legend>Modifier un Artiste </legend>

				<table width = "60%">
				
				<tr>
					<td>
						<p:outputLabel for="nomArtiste" >Nom <span class="requis">*</span></p:outputLabel>
					</td>
					<td>
            			<p:inputText id="nomArtiste" value="#{beanArtisteModif.personne.nom}" required="true" size="20" maxlength="20"  />
            			<p:message id="nom" for="nomArtiste" errorClass="erreur" />
					</td>
				</tr>
				
				<tr>
					<td>
						<p:outputLabel for="prenomArtiste"> Prenom <span class="requis">*</span></p:outputLabel>
					</td>
					<td>
				  		<p:inputText id="prenomArtiste" value="#{beanArtisteModif.personne.prenom}"  required="true" size="20" maxlength="20"  />
            			<p:message id="prenom" for="prenomArtiste" errorClass="erreur" />
            		</td>
				</tr>
				
				<tr>
					<td>
						<p:outputLabel > Date de naissance :</p:outputLabel>
					</td>
					<td>
						<p:calendar id="dateNaissanceArtise" value="#{beanArtisteModif.personne.date_naissance}" >
				  		<f:validateRequired  />
						</p:calendar>
            			<p:message id="dateNaissance" for="dateNaissanceArtise" errorClass="erreur" />
            		</td>
				</tr>
				<tr>
					<td>
						<p:outputLabel > Photo :</p:outputLabel>
					</td>
					<td>					     
						<p:fileUpload value="#{beanArtisteModif.file}" mode="simple" />
					</td>
				</tr>
			</table>
			
			<p:messages globalOnly="true" infoClass="info" />
			<h:commandButton class="boutonInscription" value="Valider" action ="#{beanArtisteModif.Modifier}" styleClass="sansLabel" />
			
			</fieldset>
			</h:form>
			


<ui:include src="Pied.xhtml" />
</h:body>
</html>